package com.kowalski.task.controller;

import com.kowalski.task.interfaces.test.TestDto;
import com.kowalski.task.interfaces.test.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by kowalski.zhang on 2018/4/12
 */
@RestController
public class TestController {

  @Autowired
  private TestService testService;

  @RequestMapping(value = "/hello", method = RequestMethod.GET)
  public String hello(){
    return testService.test();
  }

  @RequestMapping("wow")
  public TestDto testDto(){
    return testService.testReturn();
  }
}
